mui.init({
	keyEventBind: {
		backbutton: false,
		menubutton: false
	}
});
//获得侧滑主窗口webview对象
/*
var main = null;
mui.plusReady(function() {
	main = plus.webview.currentWebview().opener();
})

function closeMenu() {
	mui.fire(main, "menu:swipetop");
}
//优化显示出来的侧滑菜单，只需监听该菜单的左滑事件，然后将其关闭即可；在菜单上右滑，不做任何操作；
window.addEventListener("swipetop", closeMenu);
//document.getElementById("close-btn").addEventListener('tap', closeMenu);
mui.menu = closeMenu;*/
mui("#searchhrefs").on("tap", "a", function() {
	var targets = this.getAttribute("href");
	var main = plus.webview.currentWebview().opener();
	mui.fire(main, "closeMenu");
	if(targets == '../../pages/find/weep.html') {
		plus.webview.open('../../pages/find/weep.html','weep');
		/*
		var server_url = plus.webview.getWebviewById('weep');
		if(server_url) {
			plus.webview.show(server_url);
		} else {
			server_url = plus.webview.create(targets, 'weep');
			plus.webview.show(server_url);
		}*/

	} else {
		mui.openWindow({
			url: targets,
			id: targets
		});
	}

	//plus.webview.hide('menu');
});